/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pw.yitree.zhihu;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import pw.yitree.Gender;
import pw.yitree.GenderConverter;

/**
 *
 * @author Administrator
 */
@Entity
@Table(name = "zhihu_account")
public class Account implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private String name;
    private String email;
    private String avatar;
    private String location;
    private String company;
    @Convert(converter = GenderConverter.class)
    private Gender gender;
    private String introduction;
    @Column(name = "vote_count")
    private int voteCount;
    @Column(name = "thank_count")
    private int thankCount;
    @Column(name = "fav_count")
    private int favCount;
    @Column(name = "share_count")
    private int shareCount;

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the email
     */
    public String getEmail() {
        return email;
    }

    /**
     * @param email the email to set
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * @return the avatar
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * @param avatar the avatar to set
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * @return the location
     */
    public String getLocation() {
        return location;
    }

    /**
     * @param location the location to set
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * @return the company
     */
    public String getCompany() {
        return company;
    }

    /**
     * @param company the company to set
     */
    public void setCompany(String company) {
        this.company = company;
    }

    /**
     * @return the gender
     */
    public Gender getGender() {
        return gender;
    }

    /**
     * @param gender the gender to set
     */
    public void setGender(Gender gender) {
        this.gender = gender;
    }

    /**
     * @return the introduction
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * @param introduction the introduction to set
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * @return the voteCount
     */
    public int getVoteCount() {
        return voteCount;
    }

    /**
     * @param voteCount the voteCount to set
     */
    public void setVoteCount(int voteCount) {
        this.voteCount = voteCount;
    }

    /**
     * @return the thankCount
     */
    public int getThankCount() {
        return thankCount;
    }

    /**
     * @param thankCount the thankCount to set
     */
    public void setThankCount(int thankCount) {
        this.thankCount = thankCount;
    }

    /**
     * @return the favCount
     */
    public int getFavCount() {
        return favCount;
    }

    /**
     * @param favCount the favCount to set
     */
    public void setFavCount(int favCount) {
        this.favCount = favCount;
    }

    /**
     * @return the shareCount
     */
    public int getShareCount() {
        return shareCount;
    }

    /**
     * @param shareCount the shareCount to set
     */
    public void setShareCount(int shareCount) {
        this.shareCount = shareCount;
    }
}
